<?php /* Smarty version Smarty-3.1.13, created on 2013-05-12 08:34:39
         compiled from "views\admin_listproduct.html" */ ?>
<?php /*%%SmartyHeaderCode:79715180d944cb07a0-71574023%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f9c216de3ab3bffa0e6e5973358dc88be5720e67' => 
    array (
      0 => 'views\\admin_listproduct.html',
      1 => 1368347673,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '79715180d944cb07a0-71574023',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_5180d945232ba7_10336016',
  'variables' => 
  array (
    'products' => 0,
    'nowtype' => 0,
    'isShow' => 0,
    'product' => 0,
    'arrayColumnOption' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5180d945232ba7_10336016')) {function content_5180d945232ba7_10336016($_smarty_tpl) {?><?php if (!is_callable('smarty_function_html_options')) include 'C:\\Workspace\\APMServ\\www\\htdocs\\yiduo\\library\\smarty\\libs\\plugins\\function.html_options.php';
?><link rel="stylesheet" type="text/css" href="css/skin.css">
<link rel="stylesheet" type="text/css" href="library/jeasyui/themes/gray/easyui.css">
<link rel="stylesheet" type="text/css" href="library/jeasyui/themes/icon.css">
<script type="text/javascript" src="library/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="library/ckfinder/ckfinder.js"></script>
<script type="text/javascript" src="library/jeasyui/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="library/jeasyui/jquery.easyui.min.js"></script>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
        <tr>
          <td height="31"><div class="titlebt">产品管理</div></td>
        </tr>
      </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td colspan="2" valign="top">&nbsp;</td>
          <td>&nbsp;</td>
          <td valign="top">&nbsp;</td>
        </tr>
        <tr>
          <td valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td class="left_txt">当前位置：产品管理</td>
              </tr>
              <tr>
                <td height="20"><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
                    <tr>
                      <td></td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td><table width="100%" height="55" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="10%" height="55" valign="middle"><img src="images/user-info.gif" width="54" height="55"></td>
                      <td width="90%" valign="top"><span class="left_txt2">在这里，您可以根据您的网站要求，管理产品信息</span><br>
                        <span class="left_txt2">包括</span><span class="left_txt3">登录名，姓名，状态</span><span class="left_txt2">等。</span></td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="nowtable">
                    <tr>
                      <td class="left_bt2">&nbsp;&nbsp;&nbsp;&nbsp;产品列表</td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td><table style="width:100%;border-collapse:collapse;border:1px solid #006D84" cellspacing="0px">
                    <tr style="background-color:#f2f2f2">
                      <th style="width:15%; border:1px solid #006D84"> 所属类别 </th>
                      <th style="width:15%; border:1px solid #006D84"> 产品名 </th>
                      <th style="width:15%; border:1px solid #006D84"> 定价 </th>
                      <th style="width:15%; border:1px solid #006D84"> 优惠价 </th>
                      <th style="width:15%;border:1px solid #006D84"> 生效日期 </th>
                      <th style="width:10%;border:1px solid #006D84"> 失效日期 </th>
                      <th style="width:10%;border:1px solid #006D84"> 操作 </th>
                    </tr>
                    <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['uID'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['uID']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['name'] = 'uID';
$_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['products']->value['data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['uID']['total']);
?>
                    <tr style="text-align:center">
                      <td class="left_bt2" style="width:15%;border:1px solid #006D84"> <?php echo $_smarty_tpl->tpl_vars['products']->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['uID']['index']]['fdColumnName'];?>
 </td>
                      <td class="left_bt2" style="width:15%;border:1px solid #006D84;"> <?php echo $_smarty_tpl->tpl_vars['products']->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['uID']['index']]['fdName'];?>
 </td>
                      <td class="left_bt2" style="width:15%;border:1px solid #006D84"> <?php echo $_smarty_tpl->tpl_vars['products']->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['uID']['index']]['fdListPrice'];?>
 </td>
                      <td class="left_bt2" style="width:15%;border:1px solid #006D84"> <?php echo $_smarty_tpl->tpl_vars['products']->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['uID']['index']]['fdPrice'];?>
 </td>
                      <td class="left_bt2" style="width:15%;border:1px solid #006D84"> <?php echo $_smarty_tpl->tpl_vars['products']->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['uID']['index']]['fdAvailabe'];?>
 </td>
                      <td class="left_bt2" style="width:15%;border:1px solid #006D84"> <?php echo $_smarty_tpl->tpl_vars['products']->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['uID']['index']]['fdExpire'];?>
 </td>
                      <td style="width:10%;border:1px solid #006D84"><a href="admin-listfile.php?cid=<?php echo $_smarty_tpl->tpl_vars['products']->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['uID']['index']]['fdContentID'];?>
"><img src="images/icon2_004.png" border="0"/></a>&nbsp;<a href="admin-listrelated.php?pid=<?php echo $_smarty_tpl->tpl_vars['products']->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['uID']['index']]['id'];?>
"><img src="images/pic1.gif" border="0"/></a>&nbsp;<a href="admin-listproduct.php?f=edit&id=<?php echo $_smarty_tpl->tpl_vars['products']->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['uID']['index']]['id'];?>
"><img src="images/pencil.png" border="0"/></a>&nbsp;<a href="javascript:if(window.confirm('确定删除？')==true){window.location.href='admin-listproduct.php?f=del&id=<?php echo $_smarty_tpl->tpl_vars['products']->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['uID']['index']]['id'];?>
';}"><img src="images/cancel.png" border="0"/></a></td>
                    </tr>
                    <?php endfor; endif; ?>
                    <tr style="border-top:1px dotted #CCCCCC; text-align:center; background-color:#FFFBE5">
                      <td colspan="7"> <?php if ($_smarty_tpl->tpl_vars['products']->value['countRs']>0){?>
                        <li class="left_bt2" style="display:inline; font-size:12px"><?php echo $_smarty_tpl->tpl_vars['nowtype']->value;?>
共&nbsp;<?php echo $_smarty_tpl->tpl_vars['products']->value['countRs'];?>
&nbsp;人&nbsp;&nbsp;每页显示&nbsp;<?php echo $_smarty_tpl->tpl_vars['products']->value['pageSize'];?>
&nbsp;人&nbsp;&nbsp;第&nbsp;<?php echo $_smarty_tpl->tpl_vars['products']->value['page'];?>
&nbsp;页/共&nbsp;<?php echo $_smarty_tpl->tpl_vars['products']->value['countPage'];?>
&nbsp;页&nbsp;&nbsp;&nbsp;&nbsp; <a href="/admin-listproduct.php?page=<?php echo $_smarty_tpl->tpl_vars['products']->value['first'];?>
" class="a1">首页</a>&nbsp; <a href="/admin-listproduct.php?page=<?php echo $_smarty_tpl->tpl_vars['products']->value['previous'];?>
" class="a1">上一页</a>&nbsp; <a href="/admin-listproduct.php?page=<?php echo $_smarty_tpl->tpl_vars['products']->value['next'];?>
" class="a1">下一页</a>&nbsp; <a href="/admin-listproduct.php?page=<?php echo $_smarty_tpl->tpl_vars['products']->value['last'];?>
" class="a1">尾页</a> </li>
                        <?php }?> </td>
                    </tr>
                  </table>
                  <?php if ($_smarty_tpl->tpl_vars['isShow']->value=='E'){?>
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="nowtable">
                          <tr>
                            <td class="left_bt2">&nbsp;&nbsp;&nbsp;&nbsp;修改产品</td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr>
                      <td><form name="form1" method="POST" action="admin-listproduct.php">
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <input type="hidden" name="f" value="edit" />
                            <input type="hidden" name="id" size="30" value="<?php echo $_smarty_tpl->tpl_vars['product']->value[0]['id'];?>
" />
                            <tr>
                              <td height="30" align="right" class="left_txt2">产品类别： </td>
                              <td>&nbsp;</td>
                              <td height="30"><select class="easyui-combobox" name="column">
                                  <option value="">-请选择-</option>
                                  
                                  
                
                                                 <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['arrayColumnOption']->value,'selected'=>$_smarty_tpl->tpl_vars['product']->value[0]['fdColumnID']),$_smarty_tpl);?>

                                              
              
                                
                                </select></td>
                              <td height="30" class="left_txt">产品类别</td>
                            </tr>
                            <tr>
                              <td height="30" align="right" class="left_txt2">产品名： </td>
                              <td>&nbsp;</td>
                              <td height="30"><input class="easyui-validatebox" type="text" name="name" size="30" data-options="required:true" value="<?php echo $_smarty_tpl->tpl_vars['product']->value[0]['fdName'];?>
" /></td>
                              <td height="30" class="left_txt">产品名</td>
                            </tr>
                            <tr>
                              <td height="30" align="right" class="left_txt2">产品短语：</td>
                              <td>&nbsp;</td>
                              <td height="30"><input type="text" name="target" size="30" value="<?php echo $_smarty_tpl->tpl_vars['product']->value[0]['fdTarget'];?>
" /></td>
                              <td height="30" class="left_txt">产品短语</td>
                            </tr>
                            <tr>
                              <td height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">定价：</td>
                              <td bgcolor="#f2f2f2">&nbsp;</td>
                              <td height="30" bgcolor="#f2f2f2"><input class="easyui-numberbox" type="text" name="listprice" size="30" data-options="precision:2,groupSeparator:',',decimalSeparator:'.',prefix:'￥'" value="<?php echo $_smarty_tpl->tpl_vars['product']->value[0]['fdListPrice'];?>
" /></td>
                              <td height="30" bgcolor="#f2f2f2" class="left_txt">定价</td>
                            </tr>
                            <tr>
                              <td height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">优惠价：</td>
                              <td bgcolor="#f2f2f2">&nbsp;</td>
                              <td height="30" bgcolor="#f2f2f2"><input class="easyui-numberbox" type="text" name="price" size="30" data-options="precision:2,groupSeparator:',',decimalSeparator:'.',prefix:'￥'" value="<?php echo $_smarty_tpl->tpl_vars['product']->value[0]['fdPrice'];?>
" /></td>
                              <td height="30" bgcolor="#f2f2f2" class="left_txt">优惠价</td>
                            </tr>
                            <tr>
                              <td height="30" align="right" class="left_txt2">生效日期：</td>
                              <td>&nbsp;</td>
                              <td height="30"><input name="availabe" class="easyui-datebox" data-options="formatter:myformatter,parser:myparser" size="30" value="<?php echo $_smarty_tpl->tpl_vars['product']->value[0]['fdAvailabe'];?>
" /></td>
                              <td height="30" class="left_txt">生效日期</td>
                            </tr>
                            <tr>
                              <td height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">失效日期：</td>
                              <td bgcolor="#f2f2f2">&nbsp;</td>
                              <td height="30" bgcolor="#f2f2f2"><input class="easyui-datebox" data-options="formatter:myformatter,parser:myparser" name="expire" size="30" value="<?php echo $_smarty_tpl->tpl_vars['product']->value[0]['fdExpire'];?>
" /></td>
                              <td height="30" bgcolor="#f2f2f2" class="left_txt">失效日期</td>
                            </tr>
                            <tr>
                              <td height="30" align="right" bgcolor="#F7F8F9" class="left_txt2">产品授权方式：</td>
                              <td bgcolor="#F7F8F9">&nbsp;</td>
                              <td height="30" bgcolor="#F7F8F9"><input class="easyui-validatebox" type="text" name="license" size="30" data-options="required:true" value="<?php echo $_smarty_tpl->tpl_vars['product']->value[0]['fdLicense'];?>
" >
                                </input></td>
                              <td height="30" bgcolor="#F7F8F9" class="left_txt">产品说明</td>
                            </tr>
                            <tr>
                              <td height="30" align="right" bgcolor="#F7F8F9" class="left_txt2">产品可选版本：</td>
                              <td bgcolor="#F7F8F9">&nbsp;</td>
                              <td height="30" bgcolor="#F7F8F9"><input class="easyui-validatebox" type="text" name="version" size="30" data-options="required:true" value="<?php echo $_smarty_tpl->tpl_vars['product']->value[0]['fdVersion'];?>
" >
                                </input></td>
                              <td height="30" bgcolor="#F7F8F9" class="left_txt">产品说明</td>
                            </tr>
                            <tr>
                              <td height="30" align="right" bgcolor="#F7F8F9" class="left_txt2">产品说明：</td>
                              <td bgcolor="#F7F8F9">&nbsp;</td>
                              <td height="30" bgcolor="#F7F8F9"><textarea cols="50" id="editordescription" name="description" rows="10"><?php echo $_smarty_tpl->tpl_vars['product']->value[0]['fdDescription'];?>
</textarea></td>
                              <td height="30" bgcolor="#F7F8F9" class="left_txt">产品说明</td>
                            </tr>
                            <tr>
                              <td height="30" align="right" bgcolor="#F2F2F2" class="left_txt2">备注：</td>
                              <td bgcolor="#F2F2F2">&nbsp;</td>
                              <td height="30" bgcolor="#F2F2F2" colspan="2"><textarea cols="50" id="editormemo" name="memo" rows="10"><?php echo $_smarty_tpl->tpl_vars['product']->value[0]['fdMemo'];?>
</textarea></td>
                              <!--<td height="30" bgcolor="#F2F2F2"><span class="left_txt">备注</span></td>--> 
                            </tr>
                            <tr>
                              <td height="30" align="center" colspan="4"><input type="submit" value="保存" name="btn1" />
                                <input type="reset" value="取消" name="btn2" /></td>
                            </tr>
                          </table>
                        </form></td>
                    </tr>
                  </table>
                  <?php }?> </td>
              </tr>
            </table></td>
        </tr>
      </table>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td height="17" valign="top" background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17" /></td>
    <td background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
<?php if ($_smarty_tpl->tpl_vars['isShow']->value=='E'){?> 
<script>			
	var editor = CKEDITOR.replace( 'editormemo' );
	CKFinder.setupCKEditor( editor, 'library/ckfinder/' ) ;
	
	function myformatter(date){  
		var y = date.getFullYear();  
		var m = date.getMonth()+1;  
		var d = date.getDate();  
		return y+'-'+(m<10?('0'+m):m)+'-'+(d<10?('0'+d):d);  
	}  
	function myparser(s){  
		if (!s) return new Date();  
		var ss = (s.split('-'));  
		var y = parseInt(ss[0],10);  
		var m = parseInt(ss[1],10);  
		var d = parseInt(ss[2],10);  
		if (!isNaN(y) && !isNaN(m) && !isNaN(d)){  
			return new Date(y,m-1,d);  
		} else {  
			return new Date();  
		}  
	}	
</script> 
<?php }?>
</body>
<?php }} ?>